$(document).ready(function() {
	initialize();
});
/**
 * init function
 */
function initialize() {
	try {
		fixedDimension();
		initEvents();
	} catch (e) {
		// TODO: handle exception
		alert('initialize');
	}
}
/**
 * fixed header
 */
function fixedDimension() {
	try {
	} catch (e) {
		// TODO: handle exception
		alert('fixedDimension');
	}
}
function initEvents() {
	try {
		$(window).resize(function() {
			fixedDimension();
		});
		$(window).scroll(function() {
			var top = $(this).scrollTop();
			if( top >=100 ) {
				$('.navbar-fixed-top').css({'top' :'0', 'margin-top' : '0'});
			} else if( 0 < top < 100 ) {
				$('.navbar-fixed-top').css({'top' : 90 - top, 'margin-top' : '3px'});
			} else {
				$('.navbar-fixed-top').css({'top' :'90px', 'margin-top' : '3px'});
			}
		});
		$('#navbar-collapse').collapse();
		$('.nav-wedding-images-phone').click(function() {
			
		});
	} catch (e) {
		// TODO: handle exception
		alert('initEvents');
	}
}